package com.tdr.comicbook.model;

import java.util.ArrayList;

/**
 * Created by lemingdeng on 2014-07-02.
 */
public abstract class WebPage {
    private String urlString;
    private ArrayList<LinkableEntry> link_array;
    private String nameString;

    public abstract void parseFile();
    public void savePage() {
        parseFile();
    }
    public String getBookUrlByIndex(int index) {
        return null;
    }
    public String getBookNameByIndex(int index) {
        return null;
    }
    public int getBookCount() {
        return link_array.size();
    }
    public WebPage(String urlString) {
        setUrlString(urlString);
    }
    public void setUrlString(String urlString) {
        this.urlString = urlString;
    }
    public String getUrlString() {
        return urlString;
    }

    public ArrayList<LinkableEntry> getLink_array() {
        return link_array;
    }

    public void setLink_array(ArrayList<LinkableEntry> link_array) {
        this.link_array = link_array;
    }

    public String getNameString() {
        return nameString;
    }

    public void setNameString(String nameString) {
        this.nameString = nameString;
    }

    public static String getUrlBase() {
        return "http://lhh.a8z8.com/";
    }
}
